﻿@using InnovaApp.Layers.ResourcesLayer.Properties
@model InnovaApp.Portals.MVC4Portal.Models.ViewModels.MyProfile_ViewModel
@using (Ajax.BeginForm(actionName: "", routeValues: null, ajaxOptions: new AjaxOptions() { HttpMethod = "Post", OnSuccess = "$.fn.MainAjaxSuccess", OnFailure = "$.fn.MainAjaxFailure" }, htmlAttributes: new { @id = "frmMyProfile", @class = "MyProfile" }))
{
    <fieldset>
        <legend></legend>
        <div id="MyProfileForm">
            <div id="MyProfileForm_Identity" class="box">
                <div class="MyProfileTitle">@Resources.View_MyProfile_FieldsetCaption_Identity</div>
                <div class="MyProfileFormFields">
                    @Html.EditorFor(m => m.Contact)
                    <ol class="olButtons">
                        <li><input type="button" class="ContactDetailsButton cmdCompetencies" /></li>
                        <li><input type="button" class="ContactDetailsButton cmdTelecoms" /></li>
                        <li><input type="button" class="ContactDetailsButton cmdAddresses" /></li>
                        <li><input type="button" class="ContactDetailsButton cmdChangePassword" /></li>
                    </ol>
                </div>
            </div>
            <div id="MyProfileForm_Location" class="box">
                <div class="MyProfileTitle">@Resources.View_MyProfile_FieldsetCaption_Location</div>
                <div class="MyProfileFormFields">

                </div>
                @Html.HiddenFor(m => m.Contact.GoogleMapLat, new { id="MyProfileLocLat"})
                @Html.HiddenFor(m => m.Contact.GoogleMapLng, new { id="MyProfileLocLng"})
            </div>
        </div>
    </fieldset>
    <div class="notDisplayed">
        @Html.DropDownList("AvailableTelecomTypes", @Model.Contact.AvailableTelecomTypes, new { id = "ddlAvailableTelecomTypes" });
        @Html.DropDownList("AvailableCompetencies", @Model.Contact.AvailableCompetencies, new { id = "ddlAvailableCompetencies" });
    </div>
}

